﻿using UnityEngine;
using System.Collections;

public class GotoLoadingSceneBtn : MonoBehaviour {
	public bool isDisconnected = false;
	
	void OnClick()
	{
		CSceneManager c = GameObject.FindObjectOfType(typeof(CSceneManager)) as CSceneManager;
		if(isDisconnected) {
			StageManagerWrapper.ClearStage();
			c.GoToLoadingScene();	
		}
		//c.DestroyMsgBox();
	}
}
